package com.ui.basic.command.masterdata;

import org.springmodules.validation.bean.conf.loader.annotation.handler.Length;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;

import com.common.basic.base.BaseCommand;
import com.ui.basic.ibatis.model.masterdata.TblMIdentification;

public class CommandIdentification extends BaseCommand implements
		java.io.Serializable {

	private static final long serialVersionUID = 7157079999166044377L;

	private Long id;

	@NotBlank
	@Length(max = 5)
	private String idCode;

	@NotBlank
	@Length(max = 30)
	private String idName;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getIdCode() {
		return idCode;
	}

	public void setIdCode(String idCode) {
		this.idCode = idCode;
	}

	public String getIdName() {
		return idName;
	}

	public void setIdName(String idName) {
		this.idName = idName;
	}

	public void setProperty(TblMIdentification tblMIdentification) {
		this.id = tblMIdentification.getId();
		this.idCode = tblMIdentification.getCode();
		this.idName = tblMIdentification.getName();
	}

}